
package entities;

import org.hibernate.envers.RevisionListener;

public class CustomRevisionListener implements RevisionListener
{

  @Override
  public void newRevision(Object revisionEntity)
  {
    
   AuditRevision customRevisionEntity = (AuditRevision) revisionEntity;
   
   customRevisionEntity.setUser(new User(1L));
    
  }

}
